<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>17_2D-位移-不会脱离文档流</title>
        <style>
            .outer {
                width: 200px;
                height: 400px;
                border: 1px solid black;
            }

            .inner {
                width: 200px;
                height: 200px;
                background-color: aqua;
                transform: translate(300px);
                transform: translateY(200px);
            }

            .inner2 {
                width: 100px;
                height: 100px;
                background-color: green;
            }
        </style>
    </head>
    <body>
        <div class="outer">
            <div class="inner">

            </div>
            <div class="inner2">
                哈哈
            </div>
        </div>
    </body>
</html>